//隐患统计(销账汇总)
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const house: AppRouteModule = {
  path: '/danger',
  name: 'DangerCountTotal',
  component: LAYOUT,
  redirect: '/danger/countTotal',
  meta: {
    orderNo: 401,
    icon: 'ion:layers-outline',
    title: t('routes.demo.countTotal.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    // userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    userGroups: ['Housing'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'countTotal',
      name: 'countTotal',
      meta: {
        title: t('routes.demo.countTotal.root'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin', 'Housing'],
      },
      component: () => import('/@/views/village/housesDangerLiving/countTotal.vue'),
    },
    // {
    //   path: 'housesDangerLiving777after',
    //   name: 'housesDangerLiving777after',

    //   meta: {
    //     orderNo: 501,
    //     title: t('routes.demo.dangerInvestigate.housesDangerLiving777after'),
    //     roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
    //     userGroups: ['Admin', 'FireControl'],
    //   },
    //   component: () => import('/@/views/village/housesDangerLiving/index777after315.vue'),
    // },
  ],
};

export default house;
